package thread03;

/**
 * 自定义线程
 *
 */
public class Thread01 extends Thread{
	public void run() {
		//线程要执行的任务
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		for (int i = 0; i < 10; i++) {
			System.out.println(getName()+"..."+i);
		}
	}
}
